from django.db import models
from django.utils import timezone
class Group(models.Model):
    createTime = models.DateTimeField(default=timezone.now, verbose_name='创建时间', null=False, blank=False)
    icon = models.CharField(max_length=254, null=True, blank=True,default="群头像URL",verbose_name="群头像URL")
    name = models.CharField(max_length=254, null=True, blank=True,default="群聊名称",verbose_name="群聊名称")

# 群和用户的关系表
class Group_User(models.Model):
    account = models.CharField(max_length=254, null=True, blank=True,default="用户账号", verbose_name="用户账号")
    groupId = models.CharField(max_length=254, null=True, blank=True,default="群聊id", verbose_name="群聊id")